//
//  LZLoginButtonView.h
//  laziz_Consumer
//
//  Created by ZhaoDongBo on 2016/10/24.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef NS_ENUM(NSUInteger, LZLOGINBUTTONTYPE_PAGE) {
    LZLOGINBUTTONTYPE_PAGE_LOGIN = 100,
    LZLOGINBUTTONTYPE_PAGE_REGISTER
};

typedef NS_ENUM(NSUInteger, LZLOGINBUTTONTYPE_TAG) {
    LZLOGINBUTTONTYPE_TAG_LOGINNOW,
    LZLOGINBUTTONTYPE_TAG_REGISTER,
    LZLOGINBUTTONTYPE_TAG_REGISTERBYTYPE
};

@interface LZLoginButtonView : UIView

@property (nonatomic, assign) LZLOGINBUTTONTYPE_PAGE page;
@property (nonatomic, strong) UIButton * loginOrRegisterButton;         //注册或登录
@property (nonatomic, strong) UIButton * registerButton;                //登录页的注册按钮
@property (nonatomic, strong) UIButton * registerByTypeButton;          //切换注册类型按钮

@property (nonatomic, copy) void(^buttonActionBlock)(LZLOGINBUTTONTYPE_TAG);

- (instancetype)initWithPage:(LZLOGINBUTTONTYPE_PAGE)page;

@end
